package lab02.test12;

class Circle extends Shape{

  @Override

  double perimeter() {

             return (float)2*3.14*R;

          }

          @Override

   double area() {

            return 3.14*R*R;

          }



          @Override

  void toprintln() {

              System.out.println("圆形周长为："+this.perimeter()+" "+"圆形面积为："+this.area());

         }

}
